<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
<%@ page import="java.util.Date,java.sql.*"%>
<jsp:directive.page import="com.wy.CountTime"/>
<jsp:useBean id="connection" scope="page" class="com.wy.JDBConnection"/>
<html>
<head>
<title>
regist_config
</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

</head>

<% request.setCharacterEncoding("utf-8"); %>
<body bgcolor="#ffffff">
<%
        String name=request.getParameter("name");
        String password=request.getParameter("password");
	String result=request.getParameter("result");
       String str="update  tb_customer  set `password` = '"+password+"'  where Name='"+name+"'and result = '"+result+"'";
	boolean rs=connection.insert(str);
	if(rs){
%>
<script language="javascript">
	alert("修改成功，请登录");
	window.location.href="index.jsp";
</script>
<%}else {%>
<script language="javascript">
	alert("修改失败失败！名称或者问题答案错误！");
	window.location.href="found.jsp";
	</script>


<%} %>
</body>
</html>
